<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<head> 
    <title>新用户注册页面</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link type="text/css" rel="stylesheet" href="../css/register.css"/>
    <script type="text/javascript" src="../js/jquery-1.8.3.js"></script>
    <script type="text/javascript" src="../js/register.js"></script>
    <%--
    	Object isSucc=session.getAttribute("isSucc");
    	if(isSucc!=null){
    		if(isSucc.equals(true)){
    			out.println("<script>alert('添加成功！');</script>");
    		}
    		else{
    			out.println("<script>alert('添加失败！');</script>");
    		}
			session.setAttribute("isSucc", null);
    	}
    --%>
</head>
<body background="pic/ManBgroud.gif">
<div id="main">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td class="bg bg_top_left"></td>
            <td class="bg_top"></td>
            <td class="bg bg_top_right"></td>
        </tr>
        <tr>
            <td class="bg_left"></td>
            <td class="content">
                <form id="registerForm" action="" method="post" name="myform">
                    <dl>
                        <dt>用户名：</dt>
                        <dd><input type="text" id="userName" name="userName" class="inputs"/></dd>
                        <div id="userNameId"></div>
                    </dl>
                    <dl>
                        <dt>登录密码：</dt>
                        <dd><input type="password" id="pwd" name="pwd" class="inputs"/></dd>
                        <div id="pwdId"></div>
                    </dl>
                    <dl>
                        <dt>重复登录密码：</dt>
                        <dd><input type="password" id="repwd" class="inputs"/></dd>
                        <div id="repwdId"></div>
                    </dl>
                    <dl>
                    <dl>
                        <dt></dt>
                        <dd><input id="submit" type="image" formaction="AdminReg" src="pic/button.gif"/></dd>
                    </dl>
                </form>
            </td>
            <td class="bg_right"></td>
        </tr>
        <tr>
            <td class="bg bg_end_left"></td>
            <td class="bg_end"></td>
            <td class="bg bg_end_right"></td>
        </tr>
    </table>
</div>
</body>
</html>
<script type="text/javascript">
	<c:if test="${isSucc eq true}">
		var str="添加成功！";
	</c:if>	
	<c:if test="${isSucc eq false}">
		var str="添加失败！";
	</c:if>
	alert(str);
</script>


